package com.bridgetree.jubaocrm.ui;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v4.content.IntentCompat;

public class LoginUtil {
	public static void executeLoginFaild(Context mContext) {
		Intent intent = new Intent(mContext, LoginActivity.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
		SharedPreferences prefs = PreferenceManager
				.getDefaultSharedPreferences(mContext);
		prefs.edit().putBoolean(Contents.KEY_PERSONAL_LOGIN_STATE, false)
				.commit();
		mContext.startActivity(intent);
		
	}
}
